package org.example.dao;

import org.example.model.borrow;

import java.util.List;

public interface BorrowDao {
    boolean isExistById(String id);

    int borrowBook(borrow borrow);

    int returnBook(borrow borrow);

    int update(borrow borrow);

    borrow queryById(String borrow_id);

    List<borrow> queryAll();

    List<borrow> queryByBook(String book_id);

    List<borrow> queryByUser(String user_id);

    List<borrow> queryByBookAndUser(String book_id, String user_id);
}
